package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author 刘国航
 * @since 2024/7/13
 */
@Getter
@AllArgsConstructor
public enum EcologyPoolDaoRankTypeEnum {

    BRAND_CONTRIBUTION(1, "品牌贡献榜");

    @EnumValue
    private Integer code;
    private String desc;

    public static EcologyPoolDaoRankTypeEnum getCode(Integer code){
        for (EcologyPoolDaoRankTypeEnum value : values()){
            if(value.getCode() == code){
                return value;
            }
        }
        return null;
    }
}
